package com.zhongkun.datahome.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhongkun.datahome.service.domain.CustomerHouse;
import com.zhongkun.datahome.service.domain.Sku;
import com.zhongkun.datahome.service.processor.dto.HouseMaterialDto;
import com.zhongkun.datahome.service.req.qry.house.CustomerHouseQry;
import com.zhongkun.datahome.service.res.house.CustomerHouseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户房产Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
public interface CustomerHouseMapper extends BaseMapper<CustomerHouse> {

    IPage<CustomerHouseVo> page(IPage<CustomerHouseVo> page, @Param("qry") CustomerHouseQry qry);

    IPage<HouseMaterialDto> pageMaterialList(IPage<HouseMaterialDto> page, @Param("qry") CustomerHouseQry qry);

    List<CustomerHouseVo> listByTenantUserIds(@Param("tenantUserIds") List<Long> tenantUserIds);

    List<CustomerHouseVo> listBy(@Param("buildingNums") List<String> buildingNums, @Param("roomNums") List<String> roomNums);

    List<CustomerHouseVo> listByCustomerHouseIdList(@Param("customerHouseIdList") List<Long> customerHouseList);
}
